\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream}{}\section{sock\+:\+:net\+:\+:Tcp\+Connection\+Output\+Stream Class Reference}
\label{classsock_1_1net_1_1_tcp_connection_output_stream}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}


Tcp连接输出流  




{\ttfamily \#include $<$tcp\+\_\+connection\+\_\+output\+\_\+stream.\+h$>$}

Inheritance diagram for sock\+:\+:net\+:\+:Tcp\+Connection\+Output\+Stream\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classsock_1_1net_1_1_tcp_connection_output_stream}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream}{Tcp\+Connection\+Output\+Stream} \hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_adb35be828df7076d7a171eceda2b64fc}{self}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_a63d1fc27a69ab5d7386c5dc280fa331d}{Tcp\+Connection\+Output\+Stream} (\hyperlink{classsock_1_1net_1_1_socket}{Socket} \&sock, size\+\_\+t \hyperlink{classsock_1_1net_1_1_tcp_connection_stream_acbb9bc6316d1720f0921c7ec28dd2fdd}{size}=1024 $\ast$64)
\item 
\hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_ade1da4f37e698bbd385df5d99b610fa1}{Tcp\+Connection\+Output\+Stream} (\hyperlink{classsock_1_1net_1_1_socket}{Socket} \&sock, \hyperlink{namespacesock_1_1net_a2165d5b91136adc8c72ad25bfdbd0968}{Byte\+Buffer} buff, size\+\_\+t \hyperlink{classsock_1_1net_1_1_tcp_connection_stream_acbb9bc6316d1720f0921c7ec28dd2fdd}{size}=1024 $\ast$64)
\item 
virtual \hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_a1a1486cf47c7aa9c57d0cb275fdfb391}{$\sim$\+Tcp\+Connection\+Output\+Stream} ()
\item 
ssize\+\_\+t \hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_a1bdd407180d473f7a82f99d46df44827}{flush} (void)
\begin{DoxyCompactList}\small\item\em 把流的数据写入网络 \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{classsock_1_1net_1_1_tcp_connection_output_stream_ae4a51b9175c2ed2fcce6509627921558}{write} (const char $\ast$buf, size\+\_\+t length)
\begin{DoxyCompactList}\small\item\em 向流中写入数据 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Tcp连接输出流 

\subsection{Member Typedef Documentation}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_adb35be828df7076d7a171eceda2b64fc}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!self@{self}}
\index{self@{self}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{self}]{\setlength{\rightskip}{0pt plus 5cm}typedef {\bf Tcp\+Connection\+Output\+Stream} {\bf sock\+::net\+::\+Tcp\+Connection\+Output\+Stream\+::self}}\label{classsock_1_1net_1_1_tcp_connection_output_stream_adb35be828df7076d7a171eceda2b64fc}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_a63d1fc27a69ab5d7386c5dc280fa331d}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!Tcp\+Connection\+Output\+Stream@{Tcp\+Connection\+Output\+Stream}}
\index{Tcp\+Connection\+Output\+Stream@{Tcp\+Connection\+Output\+Stream}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{Tcp\+Connection\+Output\+Stream(\+Socket \&sock, size\+\_\+t size=1024 $\ast$64)}]{\setlength{\rightskip}{0pt plus 5cm}Tcp\+Connection\+Output\+Stream\+::\+Tcp\+Connection\+Output\+Stream (
\begin{DoxyParamCaption}
\item[{{\bf Socket} \&}]{sock, }
\item[{size\+\_\+t}]{size = {\ttfamily 1024~$\ast$~64}}
\end{DoxyParamCaption}
)}\label{classsock_1_1net_1_1_tcp_connection_output_stream_a63d1fc27a69ab5d7386c5dc280fa331d}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_ade1da4f37e698bbd385df5d99b610fa1}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!Tcp\+Connection\+Output\+Stream@{Tcp\+Connection\+Output\+Stream}}
\index{Tcp\+Connection\+Output\+Stream@{Tcp\+Connection\+Output\+Stream}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{Tcp\+Connection\+Output\+Stream(\+Socket \&sock, Byte\+Buffer buff, size\+\_\+t size=1024 $\ast$64)}]{\setlength{\rightskip}{0pt plus 5cm}Tcp\+Connection\+Output\+Stream\+::\+Tcp\+Connection\+Output\+Stream (
\begin{DoxyParamCaption}
\item[{{\bf Socket} \&}]{sock, }
\item[{{\bf Byte\+Buffer}}]{buff, }
\item[{size\+\_\+t}]{size = {\ttfamily 1024~$\ast$~64}}
\end{DoxyParamCaption}
)}\label{classsock_1_1net_1_1_tcp_connection_output_stream_ade1da4f37e698bbd385df5d99b610fa1}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_a1a1486cf47c7aa9c57d0cb275fdfb391}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!````~Tcp\+Connection\+Output\+Stream@{$\sim$\+Tcp\+Connection\+Output\+Stream}}
\index{````~Tcp\+Connection\+Output\+Stream@{$\sim$\+Tcp\+Connection\+Output\+Stream}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{$\sim$\+Tcp\+Connection\+Output\+Stream()}]{\setlength{\rightskip}{0pt plus 5cm}Tcp\+Connection\+Output\+Stream\+::$\sim$\+Tcp\+Connection\+Output\+Stream (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classsock_1_1net_1_1_tcp_connection_output_stream_a1a1486cf47c7aa9c57d0cb275fdfb391}


\subsection{Member Function Documentation}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_a1bdd407180d473f7a82f99d46df44827}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!flush@{flush}}
\index{flush@{flush}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{flush(void)}]{\setlength{\rightskip}{0pt plus 5cm}ssize\+\_\+t Tcp\+Connection\+Output\+Stream\+::flush (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{classsock_1_1net_1_1_tcp_connection_output_stream_a1bdd407180d473f7a82f99d46df44827}


把流的数据写入网络 

\begin{DoxyReturn}{Returns}
失败返回\+S\+O\+C\+K\+E\+T\+\_\+\+E\+R\+R\+O\+R,成功返回写入的字节数 
\end{DoxyReturn}
\hypertarget{classsock_1_1net_1_1_tcp_connection_output_stream_ae4a51b9175c2ed2fcce6509627921558}{}\index{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}!write@{write}}
\index{write@{write}!sock\+::net\+::\+Tcp\+Connection\+Output\+Stream@{sock\+::net\+::\+Tcp\+Connection\+Output\+Stream}}
\subsubsection[{write(const char $\ast$buf, size\+\_\+t length)}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t sock\+::net\+::\+Tcp\+Connection\+Output\+Stream\+::write (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{buf, }
\item[{size\+\_\+t}]{length}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1net_1_1_tcp_connection_output_stream_ae4a51b9175c2ed2fcce6509627921558}


向流中写入数据 


\begin{DoxyParams}{Parameters}
{\em buf} & 缓存 \\
\hline
{\em length} & 缓存大小 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
写入流的数据大小 
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
E\+:/git/sock/sock/net/\hyperlink{tcp__connection__output__stream_8h}{tcp\+\_\+connection\+\_\+output\+\_\+stream.\+h}\item 
E\+:/git/sock/src/net/\hyperlink{tcp__connection__output__stream_8cc}{tcp\+\_\+connection\+\_\+output\+\_\+stream.\+cc}\end{DoxyCompactItemize}
